//
//  WYHXNetWorkService.m
//  WYHXGameProject
//
//  Created by 常金城 on 2018/6/4.
//  Copyright © 2018年 liubo. All rights reserved.
//

#import "WYHXNetWorkService.h"
#import "WYHXNetWorkManager.h"
@implementation WYHXNetWorkService
/**
 Api名称
 
 @param pathUrl 请求的api名称
 @param params 请求的参数
 @param block 请求回调
 */
+ (void)netWorkSerViceRequestWithPostUrl:(NSString *)pathUrl withPostParams:(NSMutableDictionary *)params withBlock:(void(^)(NSDictionary * result, NSError * error))block{
    
    [WYHXNetWorkManager post:pathUrl params:params completionHandler:block];
}
+ (void)netWorkSerViceRequestWithGetUrl:(NSString *)pathUrl withPostParams:(NSMutableDictionary *)params withBlock:(void(^)(NSDictionary * result, NSError * error))block{
    
    [WYHXNetWorkManager get:pathUrl params:params completionHandler:block];
}
// 上传图片
+(void)uploadSinglePhotoWith:(NSString *)path params:(NSDictionary *)params WithDataArray:(NSMutableArray *)dataArray withParamsArray:(NSMutableArray *)fileParams AndFinish:(void (^)(NSDictionary *, NSError *))completionHandler{
    [WYHXNetWorkManager uploadSinglePhotoWith:path params:params WithDataArray:dataArray withParamsArray:fileParams AndFinish:completionHandler];
}
@end
